package com.hcb.micro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.OrderProductMapper;
import com.hcb.micro.dto.OrderProduct;
import com.hcb.micro.service.IOrderProductService;

@Service("OrderProductService")
public class OrderProductServiceImpl implements IOrderProductService {

	@Autowired
	OrderProductMapper orderProductMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return orderProductMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(OrderProduct record) {
		return orderProductMapper.insert(record);
	}

	@Override
	public int insertSelective(OrderProduct record) {
		return orderProductMapper.insertSelective(record);
	}

	@Override
	public OrderProduct selectByPrimaryKey(Integer id) {
		return orderProductMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(OrderProduct record) {
		return orderProductMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(OrderProduct record) {
		return orderProductMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<OrderProduct> selectByOrderId(Integer orderId) {
		return orderProductMapper.selectByOrderId(orderId);
	}

	@Override
	public int updateCertificateNumber(OrderProduct opt) {
		
		return orderProductMapper.updateCertificateNumber(opt);
	}

	@Override
	public OrderProduct selectByOrderIdAndProductId(OrderProduct opt) {
		
		return orderProductMapper.selectByOrderIdAndProductId(opt);
	}

}
